// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   DBObjectPoolConfig.java

package org.quickserver.util.xmlreader;

import java.io.Serializable;

// Referenced classes of package org.quickserver.util.xmlreader:
//            DatabaseConnectionSet

public class DBObjectPoolConfig
    implements Serializable
{

    public DBObjectPoolConfig()
    {
    }

    public DatabaseConnectionSet getDatabaseConnectionSet()
    {
        return databaseConnectionSet;
    }

    public void setDatabaseConnectionSet(DatabaseConnectionSet databaseConnectionSet)
    {
        this.databaseConnectionSet = databaseConnectionSet;
    }

    public void setDbPoolUtil(String className)
    {
        dbPoolUtil = className;
    }

    public String getDbPoolUtil()
    {
        return dbPoolUtil;
    }

    public String toXML(String pad)
    {
        if(pad == null)
            pad = "";
        StringBuilder sb = new StringBuilder();
        sb.append(pad).append("<db-object-pool>\n");
        if(getDatabaseConnectionSet() != null)
            sb.append(getDatabaseConnectionSet().toXML((new StringBuilder(String.valueOf(pad))).append("\t").toString()));
        sb.append(pad).append("\t<db-pool-util>").append(getDbPoolUtil()).append("</db-pool-util>\n");
        sb.append(pad).append("</db-object-pool>\n");
        return sb.toString();
    }

    private DatabaseConnectionSet databaseConnectionSet;
    private String dbPoolUtil;
}
